<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
window.onload=function()
{
	var tbl = document.getElementById("tbl");
	var rows = tbl.getElementsByTagName("tr");
	for(i=0;i<rows.length;i++)
	{
		var j = parseInt(i/3);
		var l=0%1;
		var l1=0%2;
		var l2=0%3;
		var k=1%3;
		var k1=1%4;
		var k2=1%5;
		var k3=1%1;
		var k4=5%1;
		if(j%2==0) rows[i].style.backgroundColor="#f00";
		else  rows[i].style.backgroundColor="#0f0";
	}
};
</script>
<%
	request.getAttribute("a");
	response
%>
</head>
<body>
<table id="tbl">
	<tr><td>1</td></tr>
	<tr><td>2</td></tr>
	<tr><td>3</td></tr>
	<tr><td>4</td></tr>
	<tr><td>5</td></tr>
	<tr><td>6</td></tr>
	<tr><td>7</td></tr>
	<tr><td>8</td></tr>
	<tr><td>9</td></tr>
	<tr><td>10</td></tr>
</table>
</body>
</html>